package cn.com.test.service;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.context.ApplicationContext;


import cn.com.test.dao.Problem;
import cn.com.test.dao.ProblemDAO;
import cn.com.test.daox.ProblemDAOx;

/**
 * @Author zhou
 * @Date Sun Feb 27 10:13:35 CST 2011
 * @to-do 
 */public class ProblemService  {
	
	private static final Logger log = Logger.getLogger(ProblemService.class);
	
	private ProblemDAOx problemDAOx;
	
	public void setProblemDAOx(ProblemDAOx problemDAOx) {
		this.problemDAOx = problemDAOx;
	}
	
	public ProblemDAOx getProblemDAOx() {
		return problemDAOx;
	}
	
	public static ProblemService getInstance(ApplicationContext ctx) {
		return (ProblemService) ctx.getBean("ProblemService");
	}
}